/* Inspiration Page Styles - 包含生成功能 */
.main-content {
  height: 100vh;
  background: #0a0a0a;
  color: #ffffff;
  position: relative;
  padding: 0;
  margin: 0;
  overflow: hidden; /* 禁止外层滚动 */
}


/* 主内容区域 - 内部滚动 */
.inspiration-main {
  width: 100%;
  height: 100vh;
  padding: 120px 20px 200px 20px; /* 增加底部边距，为固定工具栏留出空间 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  overflow-y: auto; /* 启用内部滚动 */
  overflow-x: hidden; /* 禁止水平滚动 */
}

/* 自定义滚动条样式 */
.inspiration-main::-webkit-scrollbar {
  width: 8px;
}

.inspiration-main::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.inspiration-main::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.6);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.inspiration-main::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.8);
}

/* Discovery Section */
.discovery-section {
  padding: 30px 0;
  background: #0a0a0a;
  width: 100%;
  max-width: 1440px;
}

.discovery-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

/* Discovery tabs styles moved to NavTabs component */

.discovery-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #e5eaf3;
  padding: 8px 35px 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  width: 200px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.search-icon {
  position: absolute;
  right: 10px;
  color: #9aa5b1;
  font-size: 14px;
}

.publish-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  border: none;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.publish-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 设计项目网格布局 */
.design-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding-bottom: 40px; /* 底部留出空间，确保最后一行内容可见 */
}

.works-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* 设计项目卡片样式 */
.design-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  will-change: transform, scale;
  /* border: 1px solid #f0f0f0; */
}

.card-image-container {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 图片缩放效果现在由GSAP处理 */

.category-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #667eea;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 2;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.4;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: #666666;
}

.card-area {
  font-weight: 500;
  color: #333333;
}

.card-designer {
  color: #999999;
}

.card-description {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #f5f5f5;
  color: #666666;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 400;
}

.work-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: #667eea;
}

.work-thumbnail {
  position: relative;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbnail-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.thumbnail-icon {
  font-size: 48px;
  opacity: 0.8;
}

.duration {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.work-info {
  padding: 15px;
}

.work-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: #9aa5b1;
}

.creator {
  font-weight: 500;
}

.likes {
  display: flex;
  align-items: center;
  gap: 4px;
}

.work-description {
  font-size: 13px;
  color: #9aa5b1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  .design-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

/* 响应式调整 */
@media (max-width: 1380px) {
  .inspiration-main {
    padding: 20px 15px 180px; /* 小屏幕增加底部边距，为工具栏留出空间 */
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .inspiration-main {
    padding: 15px 10px 160px; /* 移动端增加底部边距，为工具栏留出空间 */
  }
  .discovery-header { 
    flex-direction: column; 
    gap: 15px; 
    align-items: flex-start; 
    padding: 0 15px; 
  }
  .discovery-actions { 
    width: 100%; 
    justify-content: space-between; 
  }
  .search-input { width: 150px; }
  .publish-btn { font-size: 12px; padding: 6px 12px; }
  
  /* 设计项目网格移动端样式 */
  .design-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 15px 40px 15px; /* 移动端也添加底部间距 */
  }
  
  .card-image-container {
    height: 200px;
  }
  
  .card-content {
    padding: 16px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  .card-description {
    font-size: 13px;
  }
  
  .works-grid { 
    grid-template-columns: 1fr; 
    gap: 15px; 
    padding: 0 15px; 
  }
  .work-thumbnail { height: 120px; }
  .thumbnail-icon { font-size: 36px; }
  .work-title { font-size: 15px; }
  .work-description { font-size: 12px; }
}

@media (max-width: 480px) {
  .search-input { width: 120px; font-size: 12px; }
  .publish-btn { font-size: 11px; padding: 5px 10px; }
  .work-thumbnail { height: 100px; }
  .thumbnail-icon { font-size: 32px; }
  .work-title { font-size: 14px; }
  .work-description { font-size: 11px; }
}